<template>
  <div>
    <a-spin :spinning="loadingConfig.show"/>
  </div>
</template>

<script setup lang="ts">
import {ILoadingConfig} from "@/plugins/loading/types";
import {PropType} from "vue";

defineProps({
  loadingConfig: {
    type: Object as PropType<ILoadingConfig>,
    default: () => {
      return {title: "加载中", show: false}
    }
  }
})
</script>

<style lang="less" scoped></style>
